#include<iostream>
using namespace std;
int main()
{
	int max,num,apple=0,i;
	cin>>max;
	for(i=1;i<=10;i++)
	{
		cin>>num;
		if(num<=max) apple++;	
	}
	cout<<apple<<endl;
	return 0;
}
